package com.feri.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author lr
 * @date 2022/10/3
 */
@Data
@TableName("c_moodlike")
public class Moodlike {
    /**自增id*/
    @TableId(type = IdType.AUTO)
    private Long id;
    /**用户id*/
    @TableField("uid")
    private Long uid;
    /**动态id*/
    @TableField("mid")
    private Long mid;
    /**创建时间*/
    @TableField("ctime")
    private Date ctime;

    public Moodlike(Long uid, Long mid) {
        this.uid = uid;
        this.mid = mid;
        this.ctime = new Date();
    }
}
